import java.util.*;

public class sssss {

    public static void main(String[] args) {
        String[] arr1 = {"a","b","l","c","b"};
        List list1 = new ArrayList<String>();
        list1.add("d");
        Collections.addAll(list1,arr1);
        System.out.println("运行结果1：" + list1);

        Set<String> set1 = new HashSet<String>();
        set1.add("d");
        Collections.addAll(set1,arr1);
        System.out.println("运行结果2：" + set1);
    }

}
